package com.cuixk.microservice.consumer.feign;

import com.cuixk.microservice.consumer.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("nacos-provider")
public interface UserFeign {

    @GetMapping("/user/{id}")
    User getUserInfo(@PathVariable Integer id);
}
